<!DOCTYPE html> 
<html class="ui-mobile-rendering"> 
	<head> 
	<title>Hellogue</title> 
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
<meta name="viewport" content="width=device-width, user-scalable=no" />
   <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="<?echo base_url('themes/jquery.mobile.structure-1.0.1.min.css');?>" />
        <link rel="stylesheet" href="<?echo base_url('themes/hellogue.min.css');?>" />
       
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script>
        
        
        
          <link rel="stylesheet" href="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.css" /> 
 
  
  <script src="http://dev.jtsage.com/cdn/datebox/1.0.1/jquery.mobile.datebox-1.0.1.js"></script>

  <?php if (false) :?>
  <script src="<?echo base_url('themes/jquery.easing.1.3.js');?>"></script>
    <script src="<?echo base_url('themes/jquery.mobile.scrollview.js');?>"></script>
  <script src="<?echo base_url('themes/scrollview.js');?>"></script>
        <script src="<?echo base_url('themes/jquery.mobile.iscroll.js');?>"></script>
        <script src="http://cubiq.org/dropbox/iscroll/iscroll.js?v3.7.1"></script>
	
	<?php endif;?>
	</head> 
<body> 
<?php if($title!="About" and $title!="Hellogue" and $title!="Me" and $title!="Notification"):?>
<div data-role="page"  data-theme="a"  class="type-interior" data-add-back-btn="true" data-tap-toggle="false">
<?php else: ?>
<div data-role="page"  data-theme="a" class="type-interior">
<?php endif;?>

<?php if($title=="login") :?>
<?php else : ?>
<div data-role="header"  data-position="fixed" >
		
		<h1><?=$title?></h1>
		
	<?php if($title=="Register" or $title=="login") :?>
<?php else : ?>	   
     <a href="<?=site_url('hello_controller/to_create_hello');?>" data-role="button" class="ui-btn-right" data-icon="createhello" data-iconpos="right">New</a>
		<?php endif;?>
		<?php if($title=="Register" or $title=="login") :?>
		<?php elseif($title=="Me"):?>
	<div data-role="navbar" class="ui-navbar">
		<ul>
		
		<li><a href="<?php echo site_url('feed_controller');?>"  data-role="button" data-icon="world"></a></li>
		
		
		<li><a href="<?php echo site_url('friend_controller/view_my_friends');?>" data-role="button" data-icon="friends" data-transition="slidedown" data-inline="true"></a></li>
		

		<li><a href="<?php echo site_url('user_controller/to_edit_profile');?>" data-role="button" data-icon="editprofile" data-transition="slidedown"  data-inline="true"></a></li>
		
		
		<li><a href="<?php echo site_url('feed_controller/my_hello');?>" data-role="button" data-icon="rss" data-transition="slidedown" data-inline="true"></a></li>
		
		
		
		</ul>
	</div>
	<?php else:?>
<div data-role="navbar" class="ui-navbar">
		<ul>
		
		
		<?php if ($id=="feed"):?>
		<li><a href="<?php echo site_url('feed_controller');?>"  data-role="button" data-icon="world" class="ui-btn-active ui-state-persist"></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('feed_controller');?>"  data-role="button" data-icon="world"></a></li>
	    <?php endif; ?>
	    
	    
	    
		
		<?php if ($id=="notification"):?>
		<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification" data-transition="slidedown" data-inline="true" class="ui-btn-active ui-state-persist"></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('notification_controller/show_notification');?>" data-role="button" data-icon="notification" data-transition="slidedown" data-inline="true"></a></li>
		<?php endif; ?>
		
		
		
		<?php if ($id=="message"):?>
		<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages" data-transition="slidedown"  data-inline="true" class="ui-btn-active ui-state-persist"></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('messege_controller/show_my_messege');?>" data-role="button" data-icon="messages" data-transition="slidedown" data-inline="true"  data-transition="slidedown"></a></li>
		<?php endif; ?>
		
		
		<?php if ($id=="me"):?>
		<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me" data-transition="slidedown" data-inline="true" class="ui-btn-active ui-state-persist"></a></li>
		<?php else: ?>
		<li><a href="<?php echo site_url('user_controller/show_user_profile?userID='.$this->session->userdata('userid'));?>" data-role="button" data-icon="me" data-transition="slidedown" data-inline="true"></a></li>
		<?php endif; ?>
		
		
		</ul>
	</div>
	
		<?php endif;?>
	</div>
	
	<!-- /header -->
	<?php endif;?>
	<?php if (($id=="feed" or $id=="me")and !$this->session->userdata('isverified')): ?>
	<p><b>You haven't verified your account<b></p>
	
	<?php endif;?>
